package com.ruoyi.base.service.impl;

import java.util.List;

import com.ruoyi.base.domain.SubjectType;
import com.ruoyi.base.mapper.SubjectTypeMapper;
import com.ruoyi.base.service.ISubjectTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;




/**
 * 科目类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
@Service
public class SubjectTypeServiceImpl implements ISubjectTypeService
{
    @Autowired
    private SubjectTypeMapper subjectTypeMapper;

    /**
     * 查询科目类型
     * 
     * @param id 科目类型主键
     * @return 科目类型
     */
    @Override
    public SubjectType selectSubjectTypeById(Long id)
    {
        return subjectTypeMapper.selectSubjectTypeById(id);
    }

    /**
     * 查询科目类型列表
     * 
     * @param subjectType 科目类型
     * @return 科目类型
     */
    @Override
    public List<SubjectType> selectSubjectTypeList(SubjectType subjectType)
    {
        return subjectTypeMapper.selectSubjectTypeList(subjectType);
    }

    /**
     * 新增科目类型
     * 
     * @param subjectType 科目类型
     * @return 结果
     */
    @Override
    public int insertSubjectType(SubjectType subjectType)
    {
        return subjectTypeMapper.insertSubjectType(subjectType);
    }

    /**
     * 修改科目类型
     * 
     * @param subjectType 科目类型
     * @return 结果
     */
    @Override
    public int updateSubjectType(SubjectType subjectType)
    {
        return subjectTypeMapper.updateSubjectType(subjectType);
    }

    /**
     * 批量删除科目类型
     * 
     * @param ids 需要删除的科目类型主键
     * @return 结果
     */
    @Override
    public int deleteSubjectTypeByIds(Long[] ids)
    {
        return subjectTypeMapper.deleteSubjectTypeByIds(ids);
    }

    /**
     * 删除科目类型信息
     * 
     * @param id 科目类型主键
     * @return 结果
     */
    @Override
    public int deleteSubjectTypeById(Long id)
    {
        return subjectTypeMapper.deleteSubjectTypeById(id);
    }
}
